package c.e.a.b.f.b;

import b.i.b.f;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class f7 implements Runnable {
    public final URL a;
    public final x4 b;
    public final String c;
    public final /* synthetic */ d7 d;

    public f7(d7 d7Var, String str, URL url, x4 x4Var) {
        this.d = d7Var;
        f.N(str);
        Objects.requireNonNull(url, "null reference");
        this.a = url;
        this.b = x4Var;
        this.c = str;
    }

    public final void a(int i, Exception exception, byte[] bArr, Map<String, List<String>> map) {
        this.d.a().v(new e7(this, i, exception, bArr, map));
    }

    /* JADX WARNING: Removed duplicated region for block: B:24:0x003d  */
    /* JADX WARNING: Removed duplicated region for block: B:18:0x0031  */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x003d  */
    /* JADX WARNING: Removed duplicated region for block: B:18:0x0031  */
    public final void run() {
        /*
        r5 = this;
        r0 = r5.d;
        r0.f();
        r0 = 0;
        r1 = 0;
        r2 = r5.d;	 Catch:{ IOException -> 0x0038, all -> 0x002c }
        r3 = r5.a;	 Catch:{ IOException -> 0x0038, all -> 0x002c }
        r2 = r2.s(r3);	 Catch:{ IOException -> 0x0038, all -> 0x002c }
        r1 = r2.getResponseCode();	 Catch:{ IOException -> 0x0029, all -> 0x0026 }
        r3 = r2.getHeaderFields();	 Catch:{ IOException -> 0x0029, all -> 0x0026 }
        r4 = c.e.a.b.f.b.d7.t(r2);	 Catch:{ IOException -> 0x0024, all -> 0x0022 }
        r2.disconnect();
        r5.a(r1, r0, r4, r3);
        return;
    L_0x0022:
        r4 = move-exception;
        goto L_0x002f;
    L_0x0024:
        r4 = move-exception;
        goto L_0x003b;
    L_0x0026:
        r4 = move-exception;
        r3 = r0;
        goto L_0x002f;
    L_0x0029:
        r4 = move-exception;
        r3 = r0;
        goto L_0x003b;
    L_0x002c:
        r4 = move-exception;
        r2 = r0;
        r3 = r2;
    L_0x002f:
        if (r2 == 0) goto L_0x0034;
    L_0x0031:
        r2.disconnect();
    L_0x0034:
        r5.a(r1, r0, r0, r3);
        throw r4;
    L_0x0038:
        r4 = move-exception;
        r2 = r0;
        r3 = r2;
    L_0x003b:
        if (r2 == 0) goto L_0x0040;
    L_0x003d:
        r2.disconnect();
    L_0x0040:
        r5.a(r1, r4, r0, r3);
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.f7.run():void");
    }
}
